package com.zhanglijie.theory.balking;

/**
 * @author zhanglijie
 * @version 1.0
 * @since 1.1.0 2022/8/11 0011 23:12
 */
public class AutoFlushThread extends Thread{
    private Screan screan;
    public AutoFlushThread(Screan screan){
        super("auto flush-thread");
        this.screan = screan;
    }
    @Override
    public void run() {
        while (true){
            try {
                screan.save();
                Thread.sleep(1000);
            }catch (Exception e){}
        }
    }
}
